﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chinaer.Model;
using Chinaer.DTO;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.ComponentModel;

namespace Chinaer.WCF.Contracts
{
    /// <summary>
    /// 店铺营业状态
    /// </summary>
    public partial interface IChinaer
    {
        [OperationContract]
        [WebInvoke(Method = "GET",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "GetDianPuYingYeStatus/{dianPuID}/{apiToken}")]
        [Description("获取店铺的营业状态")]
        DTO.DianPuYingYeStatusDTO GetDianPuYingYeStatus(string dianPuID,string apiToken);

        [OperationContract]
        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "UpdateDianPuYingYeStatus")]
        [Description("更新店铺的营业状态")]
        Chinaer.Model.Common.JsonResult UpdateDianPuYingYeStatus(DianPuYingYeStatusDTO dianPuYingYeStatusDTO);
    }
}
